package com.softlab.retailwholesalesystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

@Data
@TableName(value = "t_client")
@AllArgsConstructor
@NoArgsConstructor
public class ClientEntity implements Serializable {

    @TableId(type= IdType.AUTO)
    private Long clientId;

    private String clientName;

    private String sex;

    private String telephone;

    private String type;

    private Integer shopMark;

    private String password;
    private String salt;

    private Long workerId;

    @TableField(fill= FieldFill.INSERT)
    private Date createTime;
    @TableField(fill= FieldFill.INSERT_UPDATE)
    private Date modifiedTime;

    private Integer isDelete;

    @TableField(exist = false)
    private Double money;

}
